from django.db import models


class BaseModel(models.Model):
    is_delete = models.BooleanField(
        verbose_name='是否删除',
        default=False,
    )
    creat_time = models.DateTimeField(
        verbose_name='创建时间',
        auto_now_add=True,
    )
    update_time = models.DateTimeField(
        verbose_name='更新时间',
        auto_now=True,
    )

    class Meta:
        abstract = True
